<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tModelInfo-edit" th:object="${tModelInfo}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">外键-客户编号：</label>
                <div class="col-sm-8">
                    <input id="custsId" name="custsId" th:field="*{custsId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型编号：</label>
                <div class="col-sm-8">
                    <input id="modelId" name="modelId" th:field="*{modelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型名称：</label>
                <div class="col-sm-8">
                    <input id="modelName" name="modelName" th:field="*{modelName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型描述：</label>
                <div class="col-sm-8">
                    <input id="modelNotice" name="modelNotice" th:field="*{modelNotice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">场景分类（实时，事中，事后）：</label>
                <div class="col-sm-8">
                    <input id="appType" name="appType" th:field="*{appType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">业务分类：</label>
                <div class="col-sm-8">
                    <input id="busiType" name="busiType" th:field="*{busiType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型等级：</label>
                <div class="col-sm-8">
                    <input id="modelLevel" name="modelLevel" th:field="*{modelLevel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">规则说明：</label>
                <div class="col-sm-8">
                    <input id="ruleInfo" name="ruleInfo" th:field="*{ruleInfo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">运行周期：</label>
                <div class="col-sm-8">
                    <input id="runPeriod" name="runPeriod" th:field="*{runPeriod}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">应用范围：</label>
                <div class="col-sm-8">
                    <input id="appScope" name="appScope" th:field="*{appScope}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型脚本：</label>
                <div class="col-sm-8">
                    <input id="modelScript" name="modelScript" th:field="*{modelScript}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型状态：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "model/tModelInfo"
		$("#form-tModelInfo-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-tModelInfo-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
